import '@/styles/common.scss'
import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
const app = createApp(App)

app.use(createPinia())
app.use(router)

app.mount('#app')
// 定义全局指令
// app.directive('img-lazy',{
//     mounted(el,binding){
//         // el:指令绑定的元素
//         // binding:binding.value后面吧绑定的表达式的值
//         console.log(el,binding.value);
//     }
// })